import hashlib


def MD5(password):
    hash = hashlib.md5()
    hash.update(password.encode('utf-8'))
    hash = hash.hexdigest()
    return hash

